package com.foryou.wechat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <h2>场地信息实体信息</h2>
 * Created by Lee.
 */
@Data
@TableName("v_place")
@NoArgsConstructor
public class PlaceEntity extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String placeName;
    private String placeIntro;
    private String placeAddress;
    private Long placeTypeId;
    private String region;
    private String subjectIds;
    private Long userId;
    private String score;
    private int auditStatus;

    public PlaceEntity(String placeName, String placeIntro, String placeAddress, Long placeTypeId, String region, String subjectIds, Long userId) {
        this.placeName = placeName;
        this.placeIntro = placeIntro;
        this.placeAddress = placeAddress;
        this.placeTypeId = placeTypeId;
        this.region = region;
        this.subjectIds = subjectIds;
        this.userId = userId;
    }
}
